package com.huawei.appgallery.assistantdock.buoydock.card.bean;

import android.text.TextUtils;
import com.huawei.appgallery.assistantdock.base.cardkit.bean.BuoyBaseCardBean;
import o.ContentManager;
import o.erz;

public class BuoyLanternItem extends BuoyBaseCardBean {
    private static final String ACHIEVEMENT_URI = "buoy_client|achievement";
    private static final String APP_ASSISTANT_PACKAGENAME = "com.huawei.gameassistant";
    private static final String RANKING_URI = "buoy_client|leaderboard";
    private static final int SUPPORT_ACHIEVEMENT_VERSION = 1001000200;
    private static final int SUPPORT_RANKING_VERSION = 1003000000;
    private String dockIcon_;

    public String ˊ() {
        return this.dockIcon_;
    }

    public boolean ˋ(int i) {
        String ॱॱ = ॱॱ();
        if (TextUtils.isEmpty(ॱॱ)) {
            return true;
        }
        if (ॱॱ.startsWith(ACHIEVEMENT_URI)) {
            if (erz.ˎ(ContentManager.getInstant().getContext(), APP_ASSISTANT_PACKAGENAME) >= SUPPORT_ACHIEVEMENT_VERSION) {
                return false;
            }
            return true;
        } else if (!ॱॱ.startsWith(RANKING_URI)) {
            return super.ˋ(i);
        } else {
            if (erz.ˎ(ContentManager.getInstant().getContext(), APP_ASSISTANT_PACKAGENAME) >= SUPPORT_RANKING_VERSION) {
                return false;
            }
            return true;
        }
    }
}
